﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using PagedList;

namespace JRFinances.ViewModels.RealTransactions
{
    public class RealTransactionsInGroupViewModel
    {
        public string GroupName { get; set; }

        [Required(ErrorMessage="Wybor grupy jest obowiazkowy")]
        public int GroupId { get; set; }

        public List<RealTransactionsInGroupDataViewModel> Data { get; set; }

        public string UserCriteria { get; set; }

        public string CompanyCriteria { get; set; }

        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? DateFromCriteria { get; set; }

        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? DateToCriteria { get; set; }

        public bool BuyCriteria { get; set; }

        public bool SellCriteria { get; set; }

        public int? Page { get; set; }
    }
}